//
//  DABorrowBookView.h
//  DAKnowledge
//
//  Created by DreamArts on 16/5/10.
//  Copyright © 2016年 lidongyang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class DALabel;

@protocol viewDisappear <NSObject>

- (void)viewDisapper;
- (void)toBorrowBookWithTime:(NSString *)borrowDuration
                     Privacy:(NSString *)privacy
                  BookNumber:(NSString *)bookNumber;
@end

@interface DABorrowBookView : UIView
/** 借阅时间*/
@property (nonatomic, strong) DALabel *borrowTimeLabel;
/** 时间按钮*/
@property (nonatomic, strong) UIButton *timeButton;
/** 取消的image*/
@property (nonatomic, strong) UIImageView *cancelImage;
/** switch开关*/
@property (nonatomic, strong) UISwitch *privacySwitch;
/** 是否设成隐私*/
@property (nonatomic, strong) DALabel *privacyLabel;
/** 借阅按钮*/
@property (nonatomic, strong) UIButton *borrowButton;
/** delegate*/
@property (nonatomic, weak) id<viewDisappear>delegate;

@property (nonatomic, strong) NSArray *bookNumberArray;

- (instancetype)initWithFrame:(CGRect)frame numberArray:(NSArray *)array;

@end
